let currentCallback = null;
let currentCancel = null;
let currentTargetDom = null;
export function listenContextMenuInit(callback, cancel, targetDom) {
  currentCallback = callback;
  currentCancel = cancel;
  currentTargetDom = targetDom;
  // 监听
  currentTargetDom.oncontextmenu = currentCallback;
  window.addEventListener("click", currentCancel);
}
export function listenContextMenuDestory() {
  currentCallback = null;
  currentCancel = null;
  currentTargetDom.oncontextmenu = null;
  window.removeEventListener("click", currentCancel);
}
// 监听点击事件
